<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script type="text/javascript">
function showMe(){
	
	var test = "";
	var i = 0;
	for(i; i<10;i++){
		test = test + i + "<br/>";
	}
	
	document.getElementById("test").innerHTML= test;
	
}

</script>
</head>
<body>
<p id = "test"> </p>
<input type="button" value="click me" onclick="showMe()" />



</body>
</html>